
/* CODE MODIFIED FROM http://www.infernodevelopment.com/c-log-file-class-forget-debuggers*/
#ifndef LOGFILE
#define LOGFILE

#include<iostream>
#include<vector>
#include<pthread.h>
#include<signal.h>
#include<queue>
#include<map>
#include<stdint.h>
#include<inttypes.h>
#include<string.h>
#include<string>
#include<sstream>
#include<stdlib.h>
#include<stdio.h>
#include<sys/stat.h>
#include <algorithm>
#include <iterator>
#include<sys/socket.h>
#include<sys/types.h>
#include<netinet/in.h>
#include<netdb.h>
#include<arpa/inet.h>
#include<sys/time.h>
#include<errno.h>
#include<strings.h>
#include <set>
#include<netinet/in.h>
#include <math.h>
#include <fstream>
#include <iostream>
#include <unistd.h>
#include <time.h>
#include <iomanip>
#include <bitset>
#include <list>
#include <math.h>

using namespace std;

class LogFile
{
private:
    ofstream m_stream;

public:
    LogFile(string filename,int type);
    ~LogFile();
    void WriteFilen(string logline);
    void WriteFile(string logline);
    void WriteFile(string line1,string line2,string line3);
    void WriteFilen(string line1,string line2,string line3);
    void WriteFile(char logline);
    void WriteFilen(uint32_t logline);
    void WriteFile(uint32_t logline);
	void WriteFile(int port);

    void Close();
};

#endif 
/*CODE MODIFIED FROM http://www.infernodevelopment.com/c-LogFile-file-class-forget-debuggers */
